add Generic instance for Priority