Added comment and moved puts outside of method