Wrote the run method