Behavior of firms and markets in the short run and in the long run