Refactored Program.cs