to show how to use auto_ptr