Problem 11 - Updated CreateMaps function