product class refactored
cashRegister accepts products