first implementation of rankings