In the interest of saving the reader from having to cut and paste code from the last eight pages into a working whole, an example so far is viewable here.
If you find this tutorial useful and want to show your apprectiation, a small donation is most welcome.