update demo scripts

Updated Experiment 2 to work with the new compiler, so that one does
not have to provide arguments to min() and length().