Performed modifications on math utility and created a jUnit test for it