Assignment 1 for iOS7