adding newton example and other fancy stuff