Keep homemade cookies soft

When I make cookies, which I love to do…lol…I put a slice of bread in the container when I am storing them and it keeps them soft. The moisture goes from the bread into the cookies and the bread becomes hard. Amazing. If I pack a couple cookies for my husband’s lunch, I throw in l/4 piece of bread. Yummy