Implemented relationships in model classes.
Created repository interfaces.