refactoring: fixed example