Thinly slice the onion and garlic.
Cut the pepper and courgette into small pieces.
Heat the oil in a pan over medium heat. Add the onion and sauté for 5 minutes, then add the garlic, courgette and pepper.
Sauté for another 5 minutes, then stir in the spices and add the tomatoes.
Add a drop of water, season with salt and pepper.
Put a lid on and gently cook for 10 minutes or so, until the tomatoes have just softened.
Add the corn and your greens. Cook for another 5 minutes.
Make four little wells in the ratatouille and carefully crack the eggs into them.
Put the lid on and cook for 2-5 minutes, depending on how you like your egg. If you like it runny, 2-3 minutes should be enough.
Serve immediately.