I'm guessing in the case of my example you would need to have a 50x for loop to create each page too?
That depends on how you want to address the creation issue. You can choose to have "lazy" initialization, where objects are generated "on demand", or you can intialize all the objects up-front.Lazy instantation or initialization sacrifices some performance in exchange for memory resources.