debugging for lab3