Added implementation of stack example