first attempt

Added methods to process the input file to match output. first attempt.