Added shortest path class