Implemented the account class