Final code for presentation.