Creating class pahtfinder.