can take and array in the constructor now