Mix the courgette, bananas, margarine and vanilla in a mixing bowl.
One by one add the dry ingredients to the wet.
Pour into a greased tin and bake at 180 degrees celsius for 30 minutes until completely set.
Leave to cool on a cooling rack.