Cleaned up code for slide #2.