Added Sawja code for class traversal on a need basis