added inherits()