adding attributes to domain classes