added solution to q1