working DancingFoxes solution