ok here's problem 1, the other's 2.