Learning about data structures and Objective-C