added basic upvoting algotithm