Made graph of routes a class variable, and distance a class method