Added example code from https://github.com/genericworkflownodes/CTDopts/blob/master/example.py