First version of domain/rest classes