Risk management under a two-factor model of the term structure of interest rates