first part of problem 1