Chapter3 Example7: corrected PUT example