Yes, that's right. I have classes called Book, Chapter and Page.
A Book contains an array of several Chapter objects, and each Chapter object could contain several Page objects.
My view at the moment is that the Chapter class needs a property called parent_book and when the Chapter is instantiated, this property is set to be a reference to the Book object. Likewise, a Page has a property called parent_chapter. Then I might be able to do something like this inside a particular Page object;
to get the book title. Just seems a bit messy.