Fixed to this 
```
Specify with a function how to update the state using the previous state and the new values from input stream.
```