lesson 3: task 3 changed function