Implementing the samples provided in the book "Ruminations on C++"