In a medium sauce pan add sugar and cocoa powder. Stir to combine and gradually add water, while stirring to combine well. Add the butter and place over medium heat. Bring to boil for about 7-8 minutes stirring constantly. Remove from heat and add vanilla extract. Set aside to cool slightly for about 10-15 minutes.