added function definition for Accounts class