Added Stack<E> type for the demo of Generic method.