Code for Dr. Scott