Ruby example updated