Learning bacon.js by implementing snake