answer to q1 of hw2 version 1