update sample10 to match videos
Changed sample1 to be platform independent