Exercise in "AcceleratedC++"