Finished rankall part of assignment 3