Mash bananas, add sugar, butter, mix.
Mix flour, cinnamon, salt, baking powder. Add banana mixture to them, mix until smooth.
Add walnuts if desired. Pour the dough into a mold, bake at 180 ° for 25 minutes (check readiness with a wooden skewer).