Lesson_24 Version with error