change textual summary to arrays of data

sorry about the indentation. I'm more used to spaces than to tabs.