Change Range and Serie to ArrayList<Integer>
Refactor case3