Extract codes of managing compile and execute as a Runner class