hw3 q1 and q2