Add create_csv method