object oriented socket programming and classes