added 2 piece of code for the tutorial