code for class including notes