Update program.cs

Added Flush()