moving 'run' class into a separate file