Wrote some functions to load class