BankAccount example for introducing the definition of subclass