added solution for hw2 challenge problem 3b (in progress)