Adding C#-version of the classes