seperated entities to classes