Minor changes in Problem 3