refactored Connection to be Client throughout the ruby code