Gregimba's Socode Fn
fixed merge conflict
Merge pull request #271 from gregimba/master

Adding my function.