file reading done for lab six