added gson library and json serializing method