Added account class and tests