added Example3 and slight changes to Example2