Converted ReadFile struct to Class