stack and solutions