Replaced print with puts

Puts does the same job and automatically adds the newline.