simple ruby program to simulate a point of sale application