Started to implement pathfinder class.