updated flip example