Homework-2, stack implemented.