function FormController($filter, WordService, GenreService, BandNameService) {
  var ctrl = this;

  ctrl.genres = [];  

  ctrl.getGenreNames = function() {
    GenreService.getGenres()
      .then(function(response) {        
        ctrl.genres.push(response.data.genres);
      });
  }

  ctrl.getGenreNames();
}

angular
  .module('app')
  .controller('FormController', FormController);
@@ -103,21 +103,65 @@
 trl.
-genres = %5B%5D; 
+formData = %7B%7D;%0A  ctrl.genres = %5B%5D;%0A  ctrl.bandWords = %5B%5D;
  %0A%0A 
@@ -338,25 +338,1489 @@
 ctrl.get
-GenreName
+BeginningWords = function() %7B%0A    WordService.getWords()%0A      .then(function(response) %7B%0A        var beginningWords = $filter('removeBeginningWordsFilter')(response.data.words, true);%0A        ctrl.beginningWords = beginningWords;        %0A      %7D);%0A  %7D%0A%0A  ctrl.setBeginningWords = function() %7B%0A    if (ctrl.formData.beginsWith != undefined && ctrl.formData.beginsWith != '') %7B%0A      ctrl.bandWords.push(ctrl.formData.beginsWith);      %0A    %7D%0A  %7D%0A%0A  ctrl.getRandomInt = function(min, max) %7B%0A    return Math.floor(Math.random() * (max - min + 1)) + min;%0A  %7D%0A%0A  ctrl.setBandWords = function(numOfWords) %7B%0A    WordService.getWords()%0A      .then(function(response) %7B%0A%0A        var words = $filter('removeBeginningWordsFilter')(response.data.words, false);%0A        var i = 0%0A%0A        while (i++ %3C numOfWords) %7B%0A          var randomWordIndex = ctrl.getRandomInt(0, words.length-1);%0A          ctrl.bandWords.push(words%5BrandomWordIndex%5D.string);%0A        %7D%0A                %0A        ctrl.bandName = ctrl.bandWords.join(' ');%0A        ctrl.saveBandName();%0A        ctrl.bandWords = %5B%5D;%0A%0A      %7D);%0A  %7D%0A%0A  ctrl.saveBandName = function() %7B%0A    var data = %7B %0A      band_name: %7B%0A        name: ctrl.bandName,%0A        genre_id: parseInt(ctrl.formData.genre_id)%0A      %7D,%0A    %7D;%0A    BandNameService.postBandName(data);    %0A  %7D%0A%0A  ctrl.getBandName = function(numOfWords) %7B%0A    ctrl.setBeginningWords();%0A    ctrl.setBandWords(numOfWords);        %0A  %7D%0A%0A  ctrl.getGenreNames();%0A  ctrl.getBeginningWord
 s();%0A%7D%0A%0A

add form logic to FormController