public Object report_1(final Context context, Object obj)
throws LogoException {
if (obj instanceof AgentSet) {
return ((AgentSet) obj).toLogoList();
} else if (obj instanceof LogoList) {
LogoList input = (LogoList) obj;
ArrayList<Double> numbers = new ArrayList<Double>();
ArrayList<String> strings = new ArrayList<String>();
ArrayList<Agent> agents = new ArrayList<Agent>();
for (Iterator<Object> it = input.iterator(); it.hasNext();) {
Object elt = it.next();
if (elt instanceof Double) {
numbers.add((Double) elt);
} else if (elt instanceof String) {
strings.add((String) elt);