Stanford iOS course assignment 1