create data structures and logic for the output of diff result.