Added code for open4tech lecture #4.