modified first.rb (practice)