iOS homework assignment 2