started updating tut after many code changes