Adding exception handling to stacks
adding