First attempt, brute force, really slow