Added the 'run' method who is in charge of the infinite loop