update math class