Use built in map and filter functions