simplified creating array from integers.