Creating the service layers and defining the principals DTO