Add two domain classes.

Add the classes for root code domain and function domain.