Create a class hierarchy for attributes