solving q2