In a bowl, mix pudding as directed. In the punch bowl, put half of the angel food cake on the bottom, top with half of the pudding, and then half of the pineapple, 1 can of the pie filling, and top with one container of Cool Whip. Repeat the layers with the other half of all ingredients in the same order. Top with nuts if desired and refrigerate.