comp 409 ass2 q2 and q3