Moved code snippet to examples