Added function for parsing inputs from section 4 files