Added getters for name and id to model classes