working on raking styling
more functional style
added styling for ranking