Update math class