Implemented some methods in math namespace