Update class snippet