rewrite social network classes