code: func NewService(cookieSecret string, smsService communication.SMSService, emailService communication.EmailService,
  	identityservice *identityservice.Service, version string, testEnv bool) (service *Service) {
  	service = &Service{smsService: smsService}
  
  	p := &validation.IYOPhonenumberValidationService{SMSService: smsService}
  	service.phonenumberValidationService = p
  	e := &validation.IYOEmailAddressValidationService{EmailService: emailService}
  	service.emailaddressValidationService = e
  
  	service.identityService = identityservice
  
  	service.version = version
  
  	service.testEnv = testEnv
  
  	service.initializeSessions(cookieSecret)
  	return
  }
docs: //NewService creates and initializes a Service