Refactored student print statement to build output string in a litteral block