duplication of similar outputs in the terminal - C#