Changed functor by using deposit and withdraw methods from account