Evolution and Design of Institutions