Update Example.cpp

Updated example cpp to look much cleaner