A theory of natural philosophy