Sort:  

Thanks. This is an explanation and exercise based on William Mougavar's post.