tidied up the output; merged with latest example03