Bond Pricer in Scala