Simplified server version. Without threads. Just an example.