Added HW2b problem 5