The example does work, but I believe it's missing a bit for simplicity's sake. What you're looking for is covered at the end of part 3 in the tutorial ;) — You are receiving this because you are ...
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...