Mix apples and sugar, and set aside. Grease and flour a 13x9-inch pan. Beat eggs with oil and vanilla. Sift together dry ingredients and add to the oil and egg, alternating with the apple mixture. Stir in the walnuts. Spread in the pan and bake at 350 degrees F for about an hour, or until it tests done.