Pull out common functions into basic Map
ViewController