spec for inheritance