refactored: method chaining example