Added Dr. SMith's code for demo