Working Of Thermoelectric Generator