Added the completed code as for examples

The best build gets to be pulled into the class main file. I will be looking at brevity and efficiency over cleanliness of code. GLHF.
Merge pull request #1 from Mgetch/Class

Added the completed code for the example for the class.