Problem 3 (missing commas in output)