updating math classes