inheritance task v2