Add pop and push methods
Debugged and compiled