Wrote class generator