What are the function of layers in a flexible pavement?

 What are the function of layers in a flexible pavement?