Batch Distillation code - Version 1