added pseudocode, made array from each new line

yep