Finely chop the tomatoes and onions.
Mince the garlic.
Boil the pasta in boiling water.
In a pan, heat olive oil and sauté the garlic and onions.
Add the tomatoes and simmer until it becomes a sauce.
Mix the cooked pasta with the sauce.
Season with salt and pepper to taste.
Sprinkle Parmesan cheese on top.