test and example of smart pointers (with Visual Studio 2013)