big refactoring to get rid of tuple and bring in distance between stations