Architecture Server-Client in JAVA