finish problem 1&2