Functional program, with RPC and Sockets. Tested in one machine using localhost.