Specify class relationships on both sides