DefinedClass create instance