My solution for cashmachine