20141001: Problem 5a on hw6 completed.