Updating ruby implementation of bob problem to be more consistent