Update to code for class