The Value and Cost of Modularity: A Problme-Solving Perspective