task 1, 2, 3, 9 and 10 from Objects and Array