add docs about inheritance