Preheat oven to 350° F. Grease an 8-inch square baking pan.
Cream together until smooth:
1 cup white sugar
¼ cup butter
Beat in:
1 large egg
Mix in:
3 cups diced apples
½ teaspoon baking soda
½ teaspoon baking powder
½ teaspoon salt
1 cup sifted flour
½ teaspoon cinnamon
½ teaspoon nutmeg
1 teaspoon vanilla
¼ cup chopped nuts (optional)
Bake 45 minutes or until an inserted toothpick comes out almost clean.