Grease your pan (it doesn't have to be a pie tin, it can be a 8x8 pan, or whatever you have around.) And cook your spaghetti as the package dictates.
While noodles are cooking, use a fork to scramble an egg in a large bowl. After noodles are cooked, drain them, and add them to your egg. Then add your butter and mix thoroughly. Next, add a handful of basil and a handful of Parmesan cheese (don't worry about being exact, it will taste good no matter what!) Add pepper to taste.
Next, spray your pan and dump in your spaghetti mixture. Press noodles down with a fork, trying to compress your mixture.
Add a layer of cottage cheese over your pie.
Add a layer of spaghetti sauce over the top of your cottage cheese, (I use the Hunt's canned kind, best ever...) If you'd like sprinkle a little Parmesan as a garnish.
Bake at 350 degrees for about 30 minutes. If you need to shorten the time, just up the temperature. Enjoy!