starting to write code for a file-based reader - basic reading now functional