 
     book[BOOK.RATING].value = newAverage
     book[BOOK.REVIEWCOUNT].value = nbrOfReviews
-
-
 
   getLastBook = ->
     booklist = getBookList()


  robot.hear /booklist review book (\d{1,5}) stars (\d{1})/i, (res) ->
    index = res.match[1]
    reviewRating = res.match[2]

    maxIndex = getBookList().length - 1
    if index > maxIndex

#   hubot booklist lookup <index> - retrieves book information
#   hubot booklist - displays full booklist
#   hubot booklist edit <index> <title> - edit book at index with new title
#   hubot booklist review book <index> stars <rating> - rates the selected book
#
# Author:
#   Thomas Gamble & Paul Gaffney
