Slice the potatoes thinly.
Julienne the onion.
Melt butter in a pan.
Sauté the onion, then add flour and continue to sauté.
Pour in milk and adjust the thickness.
Place the potatoes in an oven-safe dish and pour the sauce over them.
Top with cheese.
Bake in the oven at 180°C (356°F) for 20 minutes.