migrate example to behave like another gist