Add implementation of stack