update second class