HW #2 for my iOS class.