Attached to this lecture, you'll find the module source code.