added a generic examples mechanism