third problem in problem set 2