Hot water
Sizing hot water tanks, why smaller is often smarter
...thermostatic mixing valve at the tank outlet. This mixes in cold water to deliver a safe 120°F (49°C) to the house. This also effectively increases your small tank's capacity, as you are using less of the super-heated water for every gallon delivered to the shower.
Maximizing efficiency with drain water heat recovery
...