answer to ex 8: http collect