updated tutorial sample