adding related class