Implementing the methods (in the BankAccount class)