modifed ruby code
ended to the Retrieving Multiple Objects