HW5:task2: done