Removed commented code, changed the double array to int