task 3/2 code