refactored first_challenge.rb