Added Stack class and custom interface.