code for class puzzlers