you can't beat top level statements and entry point errors as a beginner
just create a folder for your project, then for each thing, you have to make a new folder for it with
dotnet new console command
indeed you can beat it but it's a bit advanced and you should learn classes
in this case