Completes exercise 11