Practice program with active record and ruby for a point of sale purchase system