Another wrong solution with debug output