Added math functions class