cleaned up some of the header files
updated example 3