A Framework For Studying Social Complexity