Add account class and test of credit method