-finished problem 1