How to insert ClientSocket?

I’m looking at the server example provided in the example folder.
It would be easy to copy/paste the ClientSocket and all code will follow.
But I want to know, how do I insert this code? Where do I find such feature!?
Simply, I don’t know what to look for!

Insert >> Class

Thank you!!

Here is a bug?
“+ Insert” (The icon to the left) works to insert an Event Handler.