assignment 7 - fix format in problem 1