Finished the Stack class.