here's what I came up with for http://en.highscore.de/cpp/boost/, Chapter 3, exercise #2