Update code and good reducer code