Boil salted water in a pot
Cook elbow macaroni until al dente
Drain the pasta
Melt butter in a saucepan
Whisk in flour and cook briefly
Slowly whisk in milk
Cook until the sauce thickens
Stir in shredded cheddar cheese
Add salt and black pepper
Mix the cooked macaroni into the cheese sauce
Serve warm
