Properly implemented map using foldRight...