Finish CPG model in C# except file IO