- finished problem 1