modified example of RESTful Client Application.
* refactoring.