Create Main.cs

Main program and functions.