stable version HW3 task 3