Finally implemented the basic idea of this program, but it only works on strings so far
Some small changes were made
Not sure