Butter casserole dish
One layer slice potatoes, a few slices of onion, a few pats of butter, some salt and pepper.
Repeat that layering x3 or until dish is nearly full.
Pour whole milk or cream until 3/4 of mixture is covered. Make sure top has some butter pats on it.
Bake at 350 deg, covered with AL foil for 45 min to 1 hour, then uncovered for 30-45 more minutes, or so.
You can add ham anywhere in there.