Update Example.cpp

Updated example cpp to look much cleaner
Merge pull request #76 from Rod-Persky/patch-1

Update Example.cpp