I am new and am studying ASP.NET Core 6 MVC. I am stuck in this error when building a Startup class like in my tutorial.

This is my Program.cs class:
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllersWithViews();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.Run();
Startup.cs class:
using Microsoft.Extensions.FileProviders;
using System;
using System.Collections.Generic;
namespace HCMUE_ASPCore_Lab02
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddSingleton<IFileProvider>
(
new PhysicalFileProvider
(
Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")
)
);
services.AddMvc();
}
}
}
After reading many posts, I know that ASP.NET Core 6's Program and Startup have changed and my tutorial is old now. But I don't know how to update my Program and Startup to fit with ASP.NET Core 6.
Please help me. Any help would be appreciated.
Thank you for reading.
services => builder.Services