Started implementing the write to server method using gson.