Added unfinished method to write inventory to text file