Add a short demo to explain instance_eval.
Implement socket handling.