added commas to problem 3 output