Refactor. The 'puts' were changed by a function print()