added enum AccountType and modified BankAccountFactory