Social Processes and Relationships: A Formal Approach.