Started writing the reducer code..