Problem 1 complete, correct solution.
Updated problem 1 with answer.
Problem 002 complete with correct answer.