Optimize Task 14