Updated main.cs tutorial for new code.