adapted output of ex1 to statements on forum