Add primitive helper to classes.