finished debugging exercise