First working version of map.