extract out to a method the conversion from text to list
renaming distance calculator to something more expressive