added basic socket functionality between two files