Blackboard- and Object-based systems via multi-head clauses