adding the updated tutorial code.