initial load of functions with test code
added modulus function