created domain core and services. Also exposed them in the api(ports)