Cleaned up code for slide #3.