A list class with some virtual methods