Create Part 4 - Rankall

start with part 3 code and make changes as needed.