add some comments in case this code becomes anything other than a demo ;-)