inheritance works (with debug output)