Code from CodeMentor AngularJS office hours on July 16, 2014