use native map and filter Array methods