added a new example to demonstrate creation of modes