Problem 2 definition