domain class and actions added

#3 
You forgot to return the domains.