stable version HW3 task 2