assignment_1, established connection through socket