almost completed #7 (it doesn't save purchases)