pathlength class method implemented