Update Stack class.