Sample code exploring new features in C++11