Daves training. Added master detail relationship