Simplified problem 6