updating code for class 15