Update class.cpp