Problem 2, done.

Easy