Building an Array and assigning data