This can be shortened to array = [0...n]