small corrections in refactored examples