working example, correction of sequence + minor renamings