inherits to extends