added inheritance to script