Major revision to tutorial.php