added some of the tasks from the second homework from the JavaScript Basics course