removed some preliminary code

risk2 is the simplified version of the risk function: I checked that it
gives the sample example as risk and as the book so I no longer need
the original version of the function risk which I've now replaced by
risk2