refactor code to a more DRY version. PUT and DELETE methods and examples added. A separate utility class to handle the request params was added