assignment 3 for ios