Do you think this is the kind of complex computer-science problem we could solve with *---> a function <---*? :p