Add new inherit() function (Work in progress)