Added SaveToFile method in Program.cs