The scientific method involves: