added new example for wrap function