Scalloped Potatoes with Ham and Bacon