Now you give the data at the creation of the object to render it later. So you need to create a new output object for every new set of data.
The class Map hat now an own file named after the class. So the rest seems a bit more independent.