Code from exercies in Apple's "Programming with Objective-C"