Create map_element class and unit tests