20141027: Problem 1 for hw10