adding json decoding
adding Client class