Stack class

Merge it in