changed sample app chapter 6 and modified strucutre to visual studio project