On the Design of Firms and Organizations