end() example