adding test project
reorganizing sample code