added handleClassUpdate, handleClassDelete, and test cases