Improved and expanded the tutorial