moved running logic to Runner class