renamed larger cstack class to avoid confusion and added self.