finished first part of first debugging problem set.