how to use a SplStack