Grate the tomatoes and crush the garlic.
Melt the oil in a saucepan.
Add garlic and tomatoes.
Add tomato paste when the tomatoes are cooked.
After cooking for a while, add the flour into it.
Boil the spaghetti and drain.
Pour the sauce over the pasta and serve.