added sample code to Path class; fixes #87