code added from class Lecture #2

All the code added to from the lecture 2, I need to do my
implementation or enhancement.