created base domain, service, repository and controller classes.