changed example to match refactor