A natural alliance of teaching and philosophy of science