Chat server and client with math.