20141121: Fixed some issues with problem 1, hw13