Title: Towards a general theory of science