Homework #2: Debug

Final commit with comments and flowchart