foundational Math function stuff implemented