Abstract class list, with a stack and a queue derived from it