Bernard Bolzano: Theory of Science