DRY applied in method "run"

1 - method **run** changed to **exec**
2 - DRY applied in method **run**
Merge pull request #3 from Gr93/patch-2

DRY applied in method "run"