setup material class