wrote class