added script to write groups of examples