Added code of stack interface for testing and the code is located in chapter 7 in the lecture note.