added class rank functionality