Problem1 finished