Code for class projects