Use reduce instead of filter and map