working version

It's left to calculate answer in old coordinates and, maybe, output some
debug information while procesing. Stop condition must be got the needed
temperature.