created cashier_2.rb as per assignment