HW4_5a added JSON-RPC functions