Adding Stack class.