Added map and foldLeft