What is a reducer? What are the functions of reducers?