Updated classSocket and Program