how to mathematically model (almost) anything