Cook yellow cake mix according to directions on the box
Filling: Mix eggs and sugar then add pineapple and margarine. Cook then on medium until margarine melts. Dont let it scortch. Put holes in each layer with a toothpick and pour some of this mixture between each layer and on top. Refrigerate and right before serving ice the cake with cool whip.