In a large saucepan, add the water along with butter, sugar, and other spices. Bring it to a rolling boil and reduce the flame to medium heat. Also, use a wooden spoon to stir the mixture. Transfer dough into another large bowl or the bowl of a stand mixer, and let it cool for about 5 minutes. After that, add an egg and vanilla extract.