Program.cs refactoring

title