script for generating compositional exercises