Sync code with example