changed cash register to be more object oriented. Added a generation counter to Life.