moved code from customer class to debit and credit classes