started the implementation of the pathfinder class