create an example with insertion and selection