Problem 4 solution posted.