IPython mapping exercise