porting to c#: models building, need to summarize.