how to write a method for science