solveByFrequencies works! Woohoo!