Sample code for class