writing the tutorial