Written in Java simulating the interaction between Client and Server