Client - Server structure for the algorithm