Refactor example.