add to_csv class method