static void Main(string[] args) { Protocol test = new Protocol(); Series s = new Series(); s.Save("series.xml"); test.AddSeries(s); test.Save("test.xml"); }