This sample project shows how to organize functionality into separate modules. A more detailed blog post for this solution can be found at the following link
This sample was created in a Mac, but should work on both Linux and Windows environments.
Build and Run
dotnet build dotnet run