Class wrapper which is called in the reducer function