Lab4: Method add(T e) implemented