Work on MAP exercises 7