code for lesson1