Implementing NStack