Interfaces and Stack<T> class implementation