Creating the service layer