Diophantine classes: definitions and basic facts