Refactor register.rb to cash_register.rb and cash_register_test.rb