first commit, revised code a little after adding some tests to cash_register_spec.rb