Added stack class.