Toward the rational design of materials