Implemented a first prototype for the ranking