added homework2 task4