See learnyounode repository for the repo that contains these examples.