examples of math class methods