add second example

Can be ckecked the funcitionallity at
http://sohs.pbs.uam.es/ejemplo_raiz/code_sample_2/reg.php