Adding the second homework from JavaScript basics course.