the Happiness demo, from CS193P lectures of Stanford