refactored and started with up and downvoting on posts