added the instructors code for comparison.