Simulating Dynamics of Institutions