added graphs in c#, still needs testing