Breaking the problem apart for problem 1