moved firstSegment to book.coffee