Added Sample code for lesson2