ios programming class homework 2