setPath in main() changed to setPathString