Replace mymap with List.map