I don't get which one is the parent and which one is the child in the first example. Is the App, the parent and the Bookshelf, the child in the first example? You mentioned that the Bookshelf is the parent and I would assume that the Book would be the child in the second example.