Defined run method to structure program