Lecture 4 improvement with introspection.