X-transition code snippets (1)