Let's code a program that keeps track of a person's savings and updates if the person has made purchases or earned money.