Create Magnesium.cs