Update class method of homework