learned map/reduce/filter and improved solution to 1