People selected dogs they wanted based on what two things?