BulldogLowell:
in the arduino playground:https://www.arduino.cc/en/Hacking/LibraryTutorial
but C++ classes are explained all over the web
Yeah the best part being that the code posted doesn't seem work, even removing the wprogram.h which is apparently antiquated so without something that works to work from and figure out it hasn't been particularly useful.
I'll keep googling.