renaming classes and methods, use of SplStack.