code associated with the paper Vincent (in preparation)