complete the account class