added a 'get-nth-class' function to the framework