Completed basic demo with sockets and modular code