Brute force solution to #3