Creating a service to save the data into a file