Problem1, used newton