First version of Problem 1