Added a little more for calculating the different distances. Having a hard time understadning enumeration.