added code skelleton to construct map with nodes.