finished making class and test class

debugged