Add example from http://www.cplusplus.com