removed guard code because tutorial is too large.

Refactored code