Fixing compile issues and adding new inheriance code to do some tests.