Simplified problem4