Refactor with the reduce mehod