chapter7 updated with new aREST