Adding fields to classes