Problem-solving and Invention