votes class fully functional for posts