Did ex17's extra credit stack implementation