Better way to initialize the array