Rewrote exercise after students' confusion.