function IndexController() {  

}

angular
  .module('app')
  .controller('IndexController', IndexController);
@@ -22,13 +22,624 @@
 ler(
-) %7B  
+WordService) %7B%0A  var ctrl = this;%0A%0A  ctrl.bandWords = %5B%5D;%0A  ctrl.bandName = '';%0A%0A  ctrl.getRandomInt = function(min, max) %7B%0A    return Math.floor(Math.random() * (max - min + 1)) + min;%0A  %7D%0A%0A  ctrl.getBandName = function(numOfWords) %7B%0A    WordService.getWords()%0A      .then(function(response) %7B%0A        var i = 0%0A        while (i++ %3C numOfWords) %7B%0A          var randomWordIndex = ctrl.getRandomInt(0, response.data.words.length);%0A          ctrl.bandWords.push(response.data.words%5BrandomWordIndex%5D.string);%0A        %7D        %0A        ctrl.bandName = ctrl.bandWords.join(' ');%0A        ctrl.bandWords = %5B%5D;%0A      %7D);%0A  %7D
 %0A%0A%7D%0A

create initial getBandName() method