Scientific method its function in research and in education