tutorial-3 code