Practice from Mark Joshi's book C++ Design Patterns and Derivatives Pricing