Changed array type from int to Integer and fixed it in all classes