Added stack class.
Merge branch 'master' into newbranch