Making friends and influencing trends