add type families in class and instance