some code for class