Removed incorrect use of inheritance