make Stack inherits from Group instead of Element