Working Code for Input Test Files