This code works with the bookshelf project