Chapter4 Example5: secured services