refactored the strategy pattern classes(withdrawcash) and functions