Refactor of example.