Added some boost sample code to cpp file