Added an interface for Stacks to hide public setters

Please let me know if I need to make any changes.