add code to addclass file