adding inheritence