-basic example of cash register written in java