the basis of invention is science, and science is almost wholly the outgrowth of pleasurable intellectual curiosity