Implemented loadClassData, needs serious refactoring. and testing