Adding refs to tutorial+fix