39 Simplified solution