Fixing #1. Reading line by line the files