Added stack constructor