Updated version of Problem 8