coursera programmingassignment2 code changes