The following code creates a map that has integer keys and values oftype View: var views = Map<int, View>();