Problem 3 definition