Adding some more functions using newton's method