completed hw3_p2