refactored example.