Adding stack implementation