inheritance task