Adds inherits method