Heat and power from one system