use 'system' instead of complicated Open3.popen call
use byebug in Ruby v2.0