completed cash_register.rb