Resolves #3
- use current line number as index when pushing into array