new class
new class
minor changes
new structure and code. Problem: cannot use socket for objectstream
new structure and code. Currently everything works