Refactor extensions example