Fixed decorator pattern example

The decorator pattern example was throwing an error from the processLine function because of unaccessible local scope.

Maybe `reducer` should be a "private" method?