package backend.command;

import java.util.HashMap;

import backend.StringPair;

public class DoTimes extends For {

	public DoTimes(StringPair stringPair, HashMap<String, Double> userVariables, Command parent) {
		super(stringPair, userVariables, parent);
	}

	public Double execute() {
		int limit = getParam(0).executeParam(1).intValue();
		String countVar = getParam(0).getParam(0).getTypedString();

		return forLoop(1, limit, 1, countVar);
	}


}

@@ -30,53 +30,17 @@
 ort 
-java.util.HashMap;%0A%0Aimport backend.StringPair
+backend.*
 ;%0A%0Ap
@@ -117,45 +117,19 @@
 ir, 
-HashMap%3CString, Double%3E userVariables
+Model model
 , Co
@@ -168,224 +168,216 @@
 ir, 
-userVariables, parent);%0A%09%7D%0A%0A%09public Double execute() %7B%0A%09%09int limit = getParam(0).executeParam(1).intValue();%0A%09%09String countVar = getParam(0).getParam(0).getTypedString();%0A%0A%09%09return forLoop(1, limit, 1, countVar)
+parent, model);%0A%09%7D%0A%09%0A%09@Override%0A%09public int start() %7B%0A%09%09return 1;%0A%09%7D%0A%09%0A%09@Override%0A%09public int end() %7B%0A%09%09return forVarList().executeParam(1).intValue();%0A%09%7D%0A%09%0A%09@Override%0A%09public int increment() %7B%0A%09%09return 1
 ;%0A%09%7D%0A%0A
-%0A
 %7D%0A

apply minor DoTimes class refactor.