Toilets to solve sanitation problem and generate electricity

A toilet which goes beyond solving sanitation problems and can be used to generate cooking gas and electricity is surely a bonus.