task 2 & 3 (7th hw)