Math functions

this is like math and stuff