@@ -0,0 +1,453 @@
+package seedu.address.logic.parser;%0A%0Aimport seedu.address.commons.util.StringUtil;%0Aimport seedu.address.commons.util.SubstringRange;%0A%0Apublic class IndexParser implements Parser%3CInteger%3E %7B%0A%0A    @Override%0A    public Integer parse(String str) throws ParseException %7B%0A        if (!StringUtil.isUnsignedInteger(str)) %7B%0A            throw new ParseException(%22not an index%22, SubstringRange.of(str));%0A        %7D%0A        return Integer.parseInt(str) - 1;%0A    %7D%0A%0A%7D%0A

implement IndexParser