Half way done. Array generates but table does not