Main Search Learning The Rules