refactory bank transfer sample code.