What are the three main roles of law?

gfgedgrdrdhd