Naive version for comparison
Naive version for comparison