Added constructor to build the array