20141120: save point for hw13, finished problem 1