Now can buy items and write to file