added task 2 in homework 5