fix sample1 ruby code(add code for `which screen`.empty?)