Changed Stack class name to DynamicStack