Original code for lesson1 (by josueportiz)