foo
correct example to some extent
completed xhr test sample