Updated formatting for problem 3.51