updated the math functions so now they are classes

:)