Problem1 and problem2 with right answer