Fixed examples to work with returned pointer.