added resource instances to classes