Logic and the Scientific Method