first commit - only outputs the final array to page for now