copied and pasted examples from CiviCRM documentation