Wymień funkcje i rodzaje rynków.