Adding the examples from tutorial