further edits on bob.rb solution