removed extra commands from the cash class and cleaned up pay class