Grilled Patty Melt

Ingredients:

1 pound ground beef

1/2 teaspoon salt

1/2 teaspoon black pepper

1 yellow onion, sliced

1 tablespoon butter

8 slices Texas toast

4 slices American cheese

4 slices Swiss cheese

Mayonnaise or softened butter, for spreading