added csv writing code to Bonus1