Homework5: debugging