Refactored heat transfer example. IO is in separate module.