Extracted instances to classes