add basic upvoting algorithum