Implemented stack and instructions using it