Implement task 4