added a new example + some new support functions
added a new example + some new support functions