playing around with writing to file