Add example to illustrate usage of unique_ptr