Simple OOP math class