created Path class to encapsulate Seq[Hop]