20141111: Completed problem 1