updated example file
updating socket --- fully functional now --- adding example