added solution for hw3 problem 7