An introduction to the logic of the sciences