started building a read file method