created relationship with classes