Put everything in one array and use a "type" attribute.