Writing solutions to .csv for external use