Refactor example