Example page, updated directive. need to add comments and tests