Adding and removing from purchase using struct working