Adding stack implementation.