Simple code stuff for tutorial purposes