chapter6 updated with new node-aREST