added solution for hw2 challenge problem 3a