Writing csv from objects added