Cash-machine in OOP