Introduction to material and energy balances