Rules and Similarity in Concept Learning