Some mathematical classes/functions