add list filter and map using higher order function