added map class and generating function