Create Methods in C# Console Applications - Write Your First C# Method

Tell us what’s happening:
Hi, i started to study how to create methods with C# in the new FreeCodeCamp’s course, but every time i try to execute from cmd(Windows), there is the error: CS0116 A namespace cannot directly contain members such as fields or methods.
I use Visual Studio Code.
How can i resolve it?
Thank you very much.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

Challenge: Create Methods in C# Console Applications - Write Your First C# Method

Link to the challenge: