Modeling adoption dynamics in social networks