added new version of Larry's class system
adding socket events