Economics of diversity and discrimination