Homework: lesson2. Updated according to review.